<layout name='Layout/layout_page' />
	
	<ol class="breadcrumb">
		<li><a href="<{:U('Activity/index')}>">抽奖活动</a></li>
      	<li class="active">中奖信息</li>
    </ol>

	<form id="ajaxForm" method="post" action="<{:U('Activity/del')}>" name="form1" class="form-horizontal form-validata">
	<TABLE class="table table-striped table-bordered table-hover">
	  <THEAD>
		<tr>
		  <TH><input class="checkall" name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/> 全选</TH>
		  <TH>会员编号</TH>
		  <TH>头像</TH>
		  <TH>昵称</TH>  
		  <TH>奖项</TH>
		  <TH>姓名</TH>
		  <TH>手机</TH>
		  <TH>地址</TH>
		  <TH>是否兑奖</TH>
		  <TH>抽奖日期</TH>
		  <TH>兑奖日期</TH>
		</tr>
	  </THEAD>
	  <TBODY>             
			<volist name="list" id="vo">
			<tr>
			  <td><input type="checkbox" name="selectedids[]" value="<{$vo.id}>" id="<{$vo.id}>"> <{$vo.id}></td>
			  <td><{$vo.memberID}></td>
			  <td><img src="<{$vo.wxface}>" style="height:30px;"></td>
			  <td><{$vo.wxname}></td>
			  <td><{$vo.event}></td>		
			  <td><{$vo.name}></td>		
			  <td><{$vo.mobile}></td>		
			  <td><{$vo.address}></td>		
			  <td><eq name="vo.status" value="0">
              	<a href="<{:U('Activity/ok' , array('id'=>$vo['id']))}>" class="btn btn-sm btn-success">未兑奖</a>
              <else/>
              	已兑奖
              </eq></td>	  
              <td><{$vo.createTime|date='Y-m-d H:i:s',###}></td>
              <td><{$vo.updateTime|date='Y-m-d H:i:s',###}></td>
			</tr>
			</volist>
	  </TBODY>
	</TABLE>

	<div class="row">
		<div class="col-md-6">
			<button class="btn btn-info btn-sm" onClick="if(!confirm('删除后不可恢复！确定吗？'))return false;"><i class="glyphicon glyphicon-trash"></i> 删除选中信息</button>
		</div>
		
		<div class="col-md-6">
			<div class="page">
				<nav>
  					<ul class="pagination"><{$page}></ul>
  				</nav>
  			</div>
		</div>
	</div>
	</form>

<input type="hidden" id="menu_action" value="activity" />